package com.wxtl.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.struts2.json.annotations.JSON;

/**
 * DownLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "down_log", catalog = "upweb")
public class DownLog implements java.io.Serializable {

	// Fields

	private Integer logId;
	private String custsn;
	private String upName;
	private String upCode;
	private String upversion;
	private String revision;
	private Timestamp downTime;
	private Timestamp installTime;
	private String request;
	private Integer upgradeId;

	// Constructors

	/** default constructor */
	public DownLog() {
	}

	/** full constructor */
	public DownLog(String custsn, String upName, String upCode, String upversion,
			String revision, Timestamp downTime, Timestamp installTime,
			String request) {
		this.custsn = custsn;
		this.upName = upName;
		this.upCode = upCode;
		this.upversion = upversion;
		this.revision = revision;
		this.downTime = downTime;
		this.installTime = installTime;
		this.request = request;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "logId", unique = true, nullable = false)
	public Integer getLogId() {
		return this.logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	
	@Column(name = "upversion", length = 10)
	public String getVersion() {
		return this.upversion;
	}

	public void setVersion(String upversion) {
		this.upversion = upversion;
	}

	@Column(name = "custsn", length = 50)
	public String getCustsn() {
		return this.custsn;
	}

	public void setCustsn(String custsn) {
		this.custsn = custsn;
	}

	@Column(name = "upName", length = 200)
	public String getUpName() {
		return this.upName;
	}

	public void setUpName(String upName) {
		this.upName = upName;
	}

	@Column(name = "upCode", length = 50)
	public String getUpCode() {
		return this.upCode;
	}

	public void setUpCode(String upCode) {
		this.upCode = upCode;
	}

	@Column(name = "revision")
	public String getRevision() {
		return this.revision;
	}

	public void setRevision(String revision) {
		this.revision = revision;
	}

	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@Column(name = "downTime", length = 19)
	public Timestamp getDownTime() {
		return this.downTime;
	}

	public void setDownTime(Timestamp downTime) {
		this.downTime = downTime;
	}

	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@Column(name = "installTime", length = 19)
	public Timestamp getInstallTime() {
		return this.installTime;
	}

	public void setInstallTime(Timestamp installTime) {
		this.installTime = installTime;
	}

	@Column(name = "request", length = 65535)
	public String getRequest() {
		return this.request;
	}

	public void setRequest(String request) {
		this.request = request;
	}
	@Column(name = "upgradeId")
	public Integer getUpgradeId() {
		return upgradeId;
	}

	public void setUpgradeId(Integer upgradeId) {
		this.upgradeId = upgradeId;
	}

}